<!DOCTYPE html [
    <!ENTITY nbsp "&#160;">
    <!ENTITY bull "&#8226;">
    <!ENTITY copy "&#169;">
]>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
	<title>保护修正</title>
</h:head>
		<link rel="stylesheet"
			href="/resources/plugins/datatables/dataTables.bootstrap.css" />
<!-- 设备维护 -->
<h:form id="incorrectProForm">
<ui:repeat value="#{protectCheckDialogController.currentDeviceProList}" var="sp">
	<p:growl id="proRevisesMsgs" showDetail="true" />
		<p:outputPanel  style="float:left;">
			<p:dataTable  style="text-align:center;"  editable="true" editMode="cell" 
			var="incorrectPro" rowKey="#{incorrectPro.id}" selectionMode="single" value="#{sp.proList}"
			emptyMessage="无记录" sortBy="#{incorrectPro.protectedType}">
				<f:facet name="header">
					#{sp.stationName}
			    </f:facet>
				<p:ajax event="cellEdit" />
				<p:column width="250" headerText="保护名称">
					<h:outputText value="#{incorrectPro.name}" />
				</p:column>
				<p:column width="150" headerText="被保护设备">
					<h:outputText value="#{incorrectPro.protectedName}" />
				</p:column>
				<p:column width="150" headerText="被保护类型">
					<h:outputText value="#{incorrectPro.protectedType}" />
				</p:column>
				<p:column width="100" headerText="类型">
					<p:cellEditor>
						<f:facet name="output">
							<p:outputLabel value="#{incorrectPro.type}" />
						</f:facet>
						<f:facet name="input">
							<p:selectOneMenu id="lazy" value="#{incorrectPro.type}" style="width:125px">
					            <f:selectItem itemLabel=" " itemValue="" />
					            <f:selectItems value="#{protectCheckQueryController.proKinds}" />
					        </p:selectOneMenu>
						</f:facet>
					</p:cellEditor>
				</p:column>
				<p:column headerText="保护型号">
					<p:cellEditor>
						<f:facet name="output">
							<p:outputLabel value="#{incorrectPro.devType}" />
						</f:facet>
						<f:facet name="input">
							<p:inputText value="#{incorrectPro.devType}"/>
						</f:facet>
					</p:cellEditor>
				</p:column>
			</p:dataTable>
		</p:outputPanel>
	</ui:repeat>
	</h:form>
</html>